<template>
	<view class="main">
		<view class="center-box">
			<image v-if="type == 1" src="https://wechat-pictures-1301970825.file.myqcloud.com/yangji/icon_weizhuce.png"></image>
			<image v-else src="https://wechat-pictures-1301970825.file.myqcloud.com/yangji/icon_erweimashixiao.png"></image>
			<view class="title">{{msg}}</view>
			<view v-if="type == 1" class="back-button" @click="go_index()">
				<view  class="back-button-text">立即注册</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list:[],
				type:1, // 1 未注册 2 其他
				msg:'',
				invitorCode: '' ,// 邀请码
			}
		},
		onLoad(req) {
			this.type = req.type
			this.msg = req.msg
			this.invitorCode = req.invitorCode
		},
		methods: {
			go_index() {
				uni.redirectTo({
					url:'/pages/newAnswer/register?type=index&invitorCode='+this.invitorCode
				})
			},
		}
	}
</script>

<style scoped>
.main{
	width: 100%;
	height: 100vh;
	background-color: #F3F5F8;
}
.center-box{
	height: 100vh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}
.center-box image {
	width: 400upx;
	height: 400upx;
}
.title {
	width: 550rpx;
	text-align: center;
	font-size: 40rpx;
	font-weight: bold;
	color: #333333;
	margin-top: 30rpx;
}
.back-button {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	margin-top: 80rpx;
}
.back-button-text{
	width: 500rpx;
	height: 98rpx;
	background: #5CAE77;
	border-radius: 49rpx;
	line-height: 98rpx;
	margin:0 auto;
	color: #fff;
	text-align: center;
	font-size: 44rpx;
	font-weight: 500;
	color: #FFFFFF;
}
</style>
